package ShuZu;

import java.util.Arrays;

public class PaiXu {
    public static void main(String[] args) {
        int [] a={2,564,56333,24242,6777};
        Arrays.sort(a);//排序从小到大
        System.out.println(Arrays.toString(a));
        Arrays.fill(a,0);//填充 数组值都变为0
        System.out.println(Arrays.toString(a));


    }
    public static void printArray(int [] a){
        for (int i = 0; i <a.length ; i++) {
            System.out.println(a[i]+",");
        }
    }

}
